<extend file='../master'/>
<block name="content">
    <div class="alert alert-success">
        用户列表
    </div>
    <table class="table table-bordered" id="box">
        <thead>
            <tr>
                <th>头像</th>
                <th>昵称</th>
                <th>性别</th>
                <th>所在省份/城市</th>
                <th>关注时间</th>
            </tr>
        </thead>
        <tbody>
            <foreach from="$User" value="$v">
                <tr>
                    <td class="img">
                        <img src="{{$v['headimgurl']}}" style="width: 60px;height: 60px;margin: 0 auto;display: block">
                    </td>
                    <td>{{$v['nickname']}}</td>
                    <td>
                        <if value="$v['sex'] eq 1">
                            男
                        <else>
                            女
                        </if>
                    </td>
                    <td>{{$v['province']}}/{{$v['city']}}</td>
                    <td>{{date("Y-m-d H:i:s",$v['subscribe_time'])}}</td>
                </tr>
            </foreach>

        </tbody>
    </table>
</block>